const list=[1,2,3,4,5]

const results=list.shift()
console.log(results)  //结果：1
console.log(list)   //[ 2, 3, 4, 5 ]